package org.climber.services.impl;

import org.climber.dao.BookDao;
import org.climber.pojo.Book;
import org.climber.services.BookService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.core.BeanPropertyRowMapper;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.stereotype.Repository;
import org.springframework.transaction.support.TransactionTemplate;

import java.util.List;

@Repository("bookService")
public class BookServiceImpl implements BookService {

    @Autowired
    private BookDao bookDao;

//    @Override
    public List<Book> query(String sql, Object[] args) {
        return bookDao.query(sql,args);
    }

//    @Override
    public int update(String sql, Object[] args) {
        return bookDao.update(sql,args);
    }
}
